package com.lcj.controller;

import com.lcj.vo.UserVo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.SessionAttributes;


@Controller
@RequestMapping("/session")
@SessionAttributes("userVo")
public class SessionController {
    @RequestMapping("/step")
    public String step()
    {
        System.out.println("SessionController.step");
        return "step1";
    }

    @RequestMapping("/step1")
    public String step1(UserVo userVo)
    {
        System.out.println("SessionController.step1");
        return "step2";
    }

    @RequestMapping("/step2")
    public String step2(UserVo userVo)
    {
        System.out.println("SessionController.step2");
        return "step3";
    }

    @RequestMapping("/step3")
    public String step3(UserVo userVo)
    {
        System.out.println("userVo=="+userVo);
        return "success";
    }
}
